package com.ruoyi.system.domain;

import java.util.ArrayList;
import java.util.List;

public class MenuLevel {
    private Integer id;

    private Integer pid;

    private String name;

    private String menuType;
    private int menuTypes;
    private List<MenuLevel> children;

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public Integer getPid() {
        return pid;
    }

    public void setPid(Integer pid) {
        this.pid = pid;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name == null ? null : name.trim();
    }

    public String getMenuType() {
        return menuType;
    }

    public void setMenuType(String menuType) {
        this.menuType = menuType == null ? null : menuType.trim();
    }

    public List<MenuLevel> getChildren() {
        return children;
    }

    public void setChildren(List<MenuLevel> children) {
        this.children = children;
    }

    public void addChild(MenuLevel child) {
        if (this.children == null) {
            this.children = new ArrayList<>();
        }
        this.children.add(child);
    }

    public int getMenuTypes() {
        return menuTypes;
    }

    public void setMenuTypes(int menuTypes) {
        this.menuTypes = menuTypes;
    }
}